/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.improvement.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.improvement.bean.Assessment;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;

public interface AssessmentService {
    MessageBean<?> queryList(Integer assessmentGrade, String deptName, Integer assessmentYear, Integer assessmentTimeType, Integer assessmentTimeValue, String corpName
            , Integer assessmentType, Integer page, Integer pageSize, String corpCode);

    MessageBean<?> detail(String assessmentId);

    MessageBean<?> saveOrCommit(String assessmentItemListStr, MultipartFile[] files,
                                String userCode, StaffBean user,
                                String approverCodeListStr, String assessmentStr, Integer operationType);

    MessageBean<?> updateAssessment(String assessmentItemListStr, MultipartFile[] files, StaffBean user,
                                    String userCode, String approverCodeListStr, String assessmentStr);

    List<Assessment> getExportList(Integer assessmentGrade, String deptName, Integer assessmentTimeType, Integer assessmentTimeValue,
                                   Integer assessmentYear, String corpName, Integer assessmentType, String corpCode);

    MessageBean<?> importFromExcel(MultipartFile file, StaffBean user, Integer assessmentGrade, Integer assessmentType, String corpCode, String approverCodeListStr);

    MessageBean<?> delete(StaffBean user, String assessmentId, String approverCodeListStr);

    MessageBean<?> getProcessData(String ids);
}
